import {defineStore} from 'pinia'

export const useBreadcrumbStore = defineStore('breadcrumb', () => {
    interface MenuItem {
        id: number;
        path: string;
        name: string;
        redirect: string;
        component: string;
        meta: {
            title: string;
            icon: string;
        };
        children: MenuItem[];
    }

    const breadcrumbData = reactive<MenuItem[]>([]);


    return {
        breadcrumbData,
    }
})